package com.seek.quartz;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.seek.common.handler.SpringContextHolder;
import com.seek.service.InterService;
import com.seek.util.InterLogUtil;

public class TestRds {
	private static final Logger logger = LoggerFactory.getLogger(TestRds.class);
	private InterService interService = (InterService)SpringContextHolder.getBean("interService");
	@Resource
	private InterLogUtil interLogUtil;

	@SuppressWarnings({ "unused", "rawtypes" })
	public void run(){
		try{
//			Date reqTime = new Date();
//			// 执行一个测试sql
//			String sql = "select id, name from t_brand";
//			List data = interService.findMapBySql(sql);
//			Date endTime = new Date();
//			// 保存日志
//			TInterLog interLog = new TInterLog();
//			interLog.setConsumeTime(endTime.getTime() - reqTime.getTime());
//			interLog.setInterId("testrds");
//			interLog.setReqTime(reqTime);
//			interLog.setRespTime(endTime);
//			interLog.setUuid(UUID.randomUUID().toString());
//			
//			interLogUtil.addInterLog(interLog);
		}catch(Exception e){
			logger.error("生成类目html失败",e);
		}
	}
	
	
}
